package com.suvel.study.service;


import com.suvel.study.pojo.LagouAuthCode;

public interface CodeService {

    /**
     *
     * @param email
     * @param code
     * @return 0正确1错误2超时
     */
    Integer validate(String email, String code);

    LagouAuthCode saveByEmail(String email);

    void createAndSend(String email);
}
